function taskVolumeUp()
{
    exec = new vlcCmd();
    exec.volumeUp();
}

function taskVolumeDown()
{
    exec = new vlcCmd();
    exec.volumeDown();
}

function taskPlay()
{
    exec = new vlcCmd();
    exec.play();
}

function taskPause()
{
    exec = new vlcCmd();
    exec.pause();
}

function taskStop()
{
    exec = new vlcCmd();
    exec.stop();
}

function taskSeekForward(min)
{
    exec = new vlcCmd();
    exec.seekJumpTime(+1, "0", min, "0");
}

function taskSeekBack(min)
{
    exec = new vlcCmd();
    exec.seekJumpTime(-1, "0", min, "0");
}


function taskFolderClicked( folder )
{
    scroll(0, 0);
    folder = unescape(folder);
    setCookie("last_browse",folder);

    b = new vlcBrowse(folder);
    b.display();
}

function taskFileClicked( filename )
{

    scroll(0, 0);
    exec = new vlcCmd("localhost", "8080");
    exec.playFile(filename)
}

function taskJumpNext()
{
    exec = new vlcCmd();
    exec.jumpNext();
}

function taskJumpPrev()
{
    exec = new vlcCmd();
    exec.jumpPrevious();
}